package com.sophialex.health.record.common.bind.swt.annotations.helper;

import java.lang.reflect.Field;

import com.sophialex.health.record.common.bind.swt.annotations.BindTo;
import com.sophialex.health.record.common.bind.swt.annotations.ListPathBindTo;

public abstract class BuildinBindHelper {
	public static BuildinBindHelper getInstance(Field f) {
		if (f.getAnnotation(BindTo.class) != null)
			return new BindToHelper(f);
		else if (f.getAnnotation(ListPathBindTo.class) != null)
			return new ListBindToHelper(f);
		else return null;
	}

	public abstract String getUIPropName();

	public abstract String getBeanPath();
	
	public abstract String toString();
}
